package edu.hainnu.niit.controller;

import edu.hainnu.niit.model.Leave_message;
import edu.hainnu.niit.service.ILeave_messageService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * TODO
 *
 * @package_name edu.hainnu.niit.controller
 * @auther GGB
 * @date 2021/12/12
 * @time 14:50
 */
@RestController
public class simpleController {
    @Resource
    ILeave_messageService iLeave_messageService;


    @PostMapping("simple/leave_message")
    @ResponseBody
    public boolean Leave_message(Leave_message leave_message){
        boolean t = iLeave_messageService.InsertLeaveMessage(leave_message);
        return t;
    }
}
